﻿using System.Collections.Generic;
using System.Net.Mail;
//Sarah Ehlers This is to define a message for the website side

namespace Common
{
    public class Message
    {
        
        public string Subject { get; set; }
        public User Sender { get; set; }
        public IEnumerable<MailAddress> Reciver { get; set; }
        public string Body { get; set; }
        public int value { get; set; }

        public Message(User usr, string Subject, IEnumerable<MailAddress> reciv, string body) 
        {
            Sender = usr;
            Subject = this.Subject;
            Reciver = reciv;
            Body = body;
        }

        public override string ToString()
        {
            return this.Subject;
        }
    }
    }
